package com.gis3c.sys.dao.impl;

import java.util.List;
import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import com.gis3c.sys.entry.po.Permission;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;
import com.gis3c.sys.dao.PermissionDao;

@Repository
public class PermissionDaoImpl extends SqlSessionDaoSupport implements
		PermissionDao {
	@Resource(name="sqlSessionFactory_sys") private SqlSessionFactory sqlSessionFactory;
	
	@Override
	public Permission createPermission(Permission permission) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deletePermission(String permissionId) {
		// TODO Auto-generated method stub

	}

	@Override
	public List<Permission> findResources(String username) {
		// TODO Auto-generated method stub
		return null;
	}
	
	@PostConstruct
	public void injectSessionFactory(){
		super.setSqlSessionFactory(sqlSessionFactory);
	}
}
